<?php
/* @var $this PeriodoController */
/* @var $model Periodo */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'periodo-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Campos com<span class="required">*</span> são obrigatórios.</p>
        <br/>
	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'inicio_inscricao'); ?>
		<?php
                $this->widget('CMaskedTextField', array(
                'model' => $model,
                'attribute' => 'inicio_inscricao',
                'name' => 'inicio_inscricao',
                'mask' => '99-99-9999',
                'htmlOptions' => array(
                    'style' => 'width:100px;'
                ),
                ));
                ?>
		<?php echo $form->error($model,'inicio_inscricao'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fim_inscricao'); ?>
		<?php
                $this->widget('CMaskedTextField', array(
                'model' => $model,
                'attribute' => 'fim_inscricao',
                'name' => 'fim_inscricao',
                'mask' => '99-99-9999',
                'htmlOptions' => array(
                    'style' => 'width:100px;'
                ),
                ));
                ?>
		<?php echo $form->error($model,'fim_inscricao'); ?>
	</div>

	<br/>
        
	<div class="column">
        <?php
        $this->widget('zii.widgets.jui.CJuiButton', array(
            'buttonType' => 'submit',
            'name' => 'btnSubmit',
            'value' => '1',
            'caption' => $model->isNewRecord ? '  Cadastrar  ' : '   Salvar   ',
            'htmlOptions' => array('class' => 'ui-button-primary')
        ));
        ?>
        </div>
        <br/>

<?php $this->endWidget(); ?>

</div><!-- form -->